home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
comms
/
other
/
micq-0.4.0
/
msg_queue.h
< prev
next >
Wrap
C/C++ Source or Header
|
1999-05-14
|
567b
|
36 lines
#ifndef MSG_QUEUE_H
#define MSG_QUEUE_H
#include "datatype.h"
struct msg
{
DWORD seq;
DWORD attempts;
DWORD exp_time;
BYTE *body;
DWORD len;
};
struct msg_queue_entry
{
struct msg *msg;
struct msg_queue_entry *next;
};
struct msg_queue
{
int entries;
struct msg_queue_entry *head;
struct msg_queue_entry *tail;
};
void msg_queue_init( void );
struct msg *msg_queue_peek( void );
struct msg *msg_queue_pop( void );
void msg_queue_push( struct msg *new_msg );
void Check_Queue( DWORD seq );
void Dump_Queue( void );
#endif